package cn.creditms.zuul;

import cn.creditms.zuul.filters.ModifyRequestBodyFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
@EnableEurekaClient
public class ZuulApplication {
  public static void main(String[] args) {
    SpringApplication.run(ZuulApplication.class, args);
  }


  @Bean
  public ModifyRequestBodyFilter modifyRequestBodyFilter() {
    return new ModifyRequestBodyFilter();
  }

//  @Bean
//  public ModifyResponseBodyFilter modifyResponseBodyFilter(){
//    return new ModifyResponseBodyFilter();
//  }

}
